#include <cstdio>
#include <cmath>
using namespace std;

int main()
{
    double a, b, c, r1, r2;
    scanf(" %lf", &a);
    scanf(" %lf", &b);
    scanf(" %lf", &c);

    r1 = (sqrt(b * b - 4 * a * c) - b) / (2 * a);
    r2 = (- sqrt(b * b - 4 * a * c) - b) / (2 * a);

    printf("r1=%7.2f\nr2=%7.2f\n", r1, r2);

    return 0;
}